// com.example.aftersales.mapper.ServiceTicketMapper.java
package com.example.aftersales.mapper;

import com.example.aftersales.entity.Ticket;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TicketMapper {
    int insert(Ticket ticket);
    List<Ticket> findAll();
    List<Ticket> findByUserId(@Param("userId") String userId);
    Ticket findById(@Param("id") Long id);
    int updateStatus(@Param("id") Long id, @Param("status") String status);
}